home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / guile-ii.src / guile-ii / guile-src / libguile / configure < prev    next >
Encoding:
Text File  |  1995-07-01  |  50.2 KB  |  1,947 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.3 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  37. # Initialize some other variables.
  38. subdirs=
  39.  
  40. ac_prev=
  41. for ac_option
  42. do
  43.  
  44.   # If the previous option needs an argument, assign it.
  45.   if test -n "$ac_prev"; then
  46.     eval "$ac_prev=\$ac_option"
  47.     ac_prev=
  48.     continue
  49.   fi
  50.  
  51.   case "$ac_option" in
  52.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53.   *) ac_optarg= ;;
  54.   esac
  55.  
  56.   # Accept the important Cygnus configure options, so we can diagnose typos.
  57.  
  58.   case "$ac_option" in
  59.  
  60.   -build | --build | --buil | --bui | --bu | --b)
  61.     ac_prev=build ;;
  62.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  63.     build="$ac_optarg" ;;
  64.  
  65.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  66.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  67.     ac_prev=cache_file ;;
  68.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  69.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  70.     cache_file="$ac_optarg" ;;
  71.  
  72.   -disable-* | --disable-*)
  73.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  88.     case "$ac_option" in
  89.       *=*) ;;
  90.       *) ac_optarg=yes ;;
  91.     esac
  92.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  93.  
  94.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  95.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  96.   | --exec | --exe | --ex)
  97.     ac_prev=exec_prefix ;;
  98.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  99.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  100.   | --exec=* | --exe=* | --ex=*)
  101.     exec_prefix="$ac_optarg" ;;
  102.  
  103.   -gas | --gas | --ga | --g)
  104.     # Obsolete; use --with-gas.
  105.     with_gas=yes ;;
  106.  
  107.   -help | --help | --hel | --he)
  108.     # Omit some internal or obsolete options to make the list less imposing.
  109.     # This message is too long to be a string in the A/UX 3.1 sh.
  110.     cat << EOF
  111. Usage: configure [options] [host]
  112. Options: [defaults in brackets after descriptions]
  113. Configuration:
  114.   --cache-file=FILE       cache test results in FILE
  115.   --help                  print this message
  116.   --no-create             do not create output files
  117.   --quiet, --silent       do not print \`checking...' messages
  118.   --version               print the version of autoconf that created configure
  119. Directory and file names:
  120.   --prefix=PREFIX         install architecture-independent files in PREFIX
  121.                           [$ac_default_prefix]
  122.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  123.                           [same as prefix]
  124.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  125.   --program-prefix=PREFIX prepend PREFIX to installed program names
  126.   --program-suffix=SUFFIX append SUFFIX to installed program names
  127.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  128. Host type:
  129.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  130.   --host=HOST             configure for HOST [guessed]
  131.   --target=TARGET         configure for TARGET [TARGET=HOST]
  132. Features and packages:
  133.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  134.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  135.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  136.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  137.   --x-includes=DIR        X include files are in DIR
  138.   --x-libraries=DIR       X library files are in DIR
  139. --enable and --with options recognized:$ac_help
  140. EOF
  141.     exit 0 ;;
  142.  
  143.   -host | --host | --hos | --ho)
  144.     ac_prev=host ;;
  145.   -host=* | --host=* | --hos=* | --ho=*)
  146.     host="$ac_optarg" ;;
  147.  
  148.   -nfp | --nfp | --nf)
  149.     # Obsolete; use --without-fp.
  150.     with_fp=no ;;
  151.  
  152.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  153.   | --no-cr | --no-c)
  154.     no_create=yes ;;
  155.  
  156.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  157.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  158.     no_recursion=yes ;;
  159.  
  160.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  161.     ac_prev=prefix ;;
  162.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  163.     prefix="$ac_optarg" ;;
  164.  
  165.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  166.   | --program-pre | --program-pr | --program-p)
  167.     ac_prev=program_prefix ;;
  168.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  169.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  170.     program_prefix="$ac_optarg" ;;
  171.  
  172.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  173.   | --program-suf | --program-su | --program-s)
  174.     ac_prev=program_suffix ;;
  175.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  176.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  177.     program_suffix="$ac_optarg" ;;
  178.  
  179.   -program-transform-name | --program-transform-name \
  180.   | --program-transform-nam | --program-transform-na \
  181.   | --program-transform-n | --program-transform- \
  182.   | --program-transform | --program-transfor \
  183.   | --program-transfo | --program-transf \
  184.   | --program-trans | --program-tran \
  185.   | --progr-tra | --program-tr | --program-t)
  186.     ac_prev=program_transform_name ;;
  187.   -program-transform-name=* | --program-transform-name=* \
  188.   | --program-transform-nam=* | --program-transform-na=* \
  189.   | --program-transform-n=* | --program-transform-=* \
  190.   | --program-transform=* | --program-transfor=* \
  191.   | --program-transfo=* | --program-transf=* \
  192.   | --program-trans=* | --program-tran=* \
  193.   | --progr-tra=* | --program-tr=* | --program-t=*)
  194.     program_transform_name="$ac_optarg" ;;
  195.  
  196.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  197.   | -silent | --silent | --silen | --sile | --sil)
  198.     silent=yes ;;
  199.  
  200.   -site | --site | --sit)
  201.     ac_prev=site ;;
  202.   -site=* | --site=* | --sit=*)
  203.     site="$ac_optarg" ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 2.3"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 some systems may open it to /dev/tty
  289. # 4 used on the Kubota Titan
  290. # 6 checking for... messages and results
  291. # 5 compiler messages saved in config.log
  292. if test "$silent" = yes; then
  293.   exec 6>/dev/null
  294. else
  295.   exec 6>&1
  296. fi
  297. exec 5>./config.log
  298.  
  299. echo "\
  300. This file contains any messages produced by compilers while
  301. running configure, to aid debugging if configure makes a mistake.
  302. " 1>&5
  303.  
  304. # Strip out --no-create and --no-recursion so they do not pile up.
  305. # Also quote any args containing shell metacharacters.
  306. ac_configure_args=
  307. for ac_arg
  308. do
  309.   case "$ac_arg" in
  310.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  311.   | --no-cr | --no-c) ;;
  312.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  313.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  314.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  315.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  316.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  317.   esac
  318. done
  319.  
  320. # NLS nuisances.
  321. # Only set LANG and LC_ALL to C if already set.
  322. # These must not be set unconditionally because not all systems understand
  323. # e.g. LANG=C (notably SCO).
  324. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  325. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  326.  
  327. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  328. rm -rf conftest* confdefs.h
  329. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  330. echo > confdefs.h
  331.  
  332. # A filename unique to this package, relative to the directory that
  333. # configure is in, which we can look for to find out if srcdir is correct.
  334. ac_unique_file=gscm.c
  335.  
  336. # Find the source files, if location was not specified.
  337. if test -z "$srcdir"; then
  338.   ac_srcdir_defaulted=yes
  339.   # Try the directory containing this script, then its parent.
  340.   ac_prog=$0
  341.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  342.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  343.   srcdir=$ac_confdir
  344.   if test ! -r $srcdir/$ac_unique_file; then
  345.     srcdir=..
  346.   fi
  347. else
  348.   ac_srcdir_defaulted=no
  349. fi
  350. if test ! -r $srcdir/$ac_unique_file; then
  351.   if test "$ac_srcdir_defaulted" = yes; then
  352.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  353.   else
  354.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  355.   fi
  356. fi
  357. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  358.  
  359. # Prefer explicitly selected file to automatically selected ones.
  360. if test -z "$CONFIG_SITE"; then
  361.   if test "x$prefix" != xNONE; then
  362.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  363.   else
  364.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  365.   fi
  366. fi
  367. for ac_site_file in $CONFIG_SITE; do
  368.   if test -r "$ac_site_file"; then
  369.     echo "loading site script $ac_site_file"
  370.     . "$ac_site_file"
  371.   fi
  372. done
  373.  
  374. if test -r "$cache_file"; then
  375.   echo "loading cache $cache_file"
  376.   . $cache_file
  377. else
  378.   echo "creating cache $cache_file"
  379.   > $cache_file
  380. fi
  381.  
  382. ac_ext=c
  383. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  384. ac_cpp='$CPP $CPPFLAGS'
  385. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  386. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  387.  
  388. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  389.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  390.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  391.     ac_n= ac_c='
  392. ' ac_t='    '
  393.   else
  394.     ac_n=-n ac_c= ac_t=
  395.   fi
  396. else
  397.   ac_n= ac_c='\c' ac_t=
  398. fi
  399.  
  400.  
  401.  
  402.  
  403. test -z "$CFLAGS" && CFLAGS=-g 
  404. test -z "$LDFLAGS" && LDFLAGS=-g 
  405.  
  406. # Extract the first word of "gcc", so it can be a program name with args.
  407. set dummy gcc; ac_word=$2
  408. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  409. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  410.   echo $ac_n "(cached) $ac_c" 1>&6
  411. else
  412.   if test -n "$CC"; then
  413.   ac_cv_prog_CC="$CC" # Let the user override the test.
  414. else
  415.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  416.   for ac_dir in $PATH; do
  417.     test -z "$ac_dir" && ac_dir=.
  418.     if test -f $ac_dir/$ac_word; then
  419.       ac_cv_prog_CC="gcc"
  420.       break
  421.     fi
  422.   done
  423.   IFS="$ac_save_ifs"
  424.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  425. fi
  426. fi
  427. CC="$ac_cv_prog_CC"
  428. if test -n "$CC"; then
  429.   echo "$ac_t""$CC" 1>&6
  430. else
  431.   echo "$ac_t""no" 1>&6
  432. fi
  433.  
  434.  
  435. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  436. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  437.   echo $ac_n "(cached) $ac_c" 1>&6
  438. else
  439.   cat > conftest.c <<EOF
  440. #ifdef __GNUC__
  441.   yes;
  442. #endif
  443. EOF
  444. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  445.   ac_cv_prog_gcc=yes
  446. else
  447.   ac_cv_prog_gcc=no
  448. fi
  449. fi
  450. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  451. if test $ac_cv_prog_gcc = yes; then
  452.   GCC=yes
  453.   if test "${CFLAGS+set}" != set; then
  454.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  455. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  456.   echo $ac_n "(cached) $ac_c" 1>&6
  457. else
  458.   echo 'void f(){}' > conftest.c
  459. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  460.   ac_cv_prog_gcc_g=yes
  461. else
  462.   ac_cv_prog_gcc_g=no
  463. fi
  464. rm -f conftest*
  465.  
  466. fi
  467.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  468.     if test $ac_cv_prog_gcc_g = yes; then
  469.       CFLAGS="-g -O"
  470.     else
  471.       CFLAGS="-O"
  472.     fi
  473.   fi
  474. else
  475.   GCC=
  476.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  477. fi
  478.  
  479. ac_aux_dir=
  480. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  481.   if test -f $ac_dir/install-sh; then
  482.     ac_aux_dir=$ac_dir
  483.     ac_install_sh="$ac_aux_dir/install-sh -c"
  484.     break
  485.   elif test -f $ac_dir/install.sh; then
  486.     ac_aux_dir=$ac_dir
  487.     ac_install_sh="$ac_aux_dir/install.sh -c"
  488.     break
  489.   fi
  490. done
  491. if test -z "$ac_aux_dir"; then
  492.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  493. fi
  494. ac_config_guess=$ac_aux_dir/config.guess
  495. ac_config_sub=$ac_aux_dir/config.sub
  496. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  497.  
  498. # Find a good install program.  We prefer a C program (faster),
  499. # so one script is as good as another.  But avoid the broken or
  500. # incompatible versions:
  501. # SysV /etc/install, /usr/sbin/install
  502. # SunOS /usr/etc/install
  503. # IRIX /sbin/install
  504. # AIX /bin/install
  505. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  506. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  507. # ./install, which can be erroneously created by make from ./install.sh.
  508. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  509. if test -z "$INSTALL"; then
  510. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  511.   echo $ac_n "(cached) $ac_c" 1>&6
  512. else
  513.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  514.   for ac_dir in $PATH; do
  515.     # Account for people who put trailing slashes in PATH elements.
  516.     case "$ac_dir/" in
  517.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  518.     *)
  519.       # OSF1 and SCO ODT 3.0 have their own names for install.
  520.       for ac_prog in ginstall installbsd scoinst install; do
  521.         if test -f $ac_dir/$ac_prog; then
  522.       if test $ac_prog = install &&
  523.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  524.         # AIX install.  It has an incompatible calling convention.
  525.         # OSF/1 installbsd also uses dspmsg, but is usable.
  526.         :
  527.       else
  528.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  529.         break 2
  530.       fi
  531.     fi
  532.       done
  533.       ;;
  534.     esac
  535.   done
  536.   IFS="$ac_save_ifs"
  537.   # As a last resort, use the slow shell script.
  538.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  539. fi
  540.   INSTALL="$ac_cv_path_install"
  541. fi
  542. echo "$ac_t""$INSTALL" 1>&6
  543.  
  544. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  545. # It thinks the first close brace ends the variable substitution.
  546. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  547.  
  548. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  549.  
  550. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  551. # On Suns, sometimes $CPP names a directory.
  552. if test -n "$CPP" && test -d "$CPP"; then
  553.   CPP=
  554. fi
  555. if test -z "$CPP"; then
  556. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  557.   echo $ac_n "(cached) $ac_c" 1>&6
  558. else
  559.     # This must be in double quotes, not single quotes, because CPP may get
  560.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  561.   CPP="${CC-cc} -E"
  562.   # On the NeXT, cc -E runs the code through the compiler's parser,
  563.   # not just through cpp.
  564.   cat > conftest.$ac_ext <<EOF
  565. #line 566 "configure"
  566. #include "confdefs.h"
  567. #include <assert.h>
  568. Syntax Error
  569. EOF
  570. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  571. ac_err=`grep -v '^ *+' conftest.out`
  572. if test -z "$ac_err"; then
  573.   :
  574. else
  575.   echo "$ac_err" >&5
  576.   rm -rf conftest*
  577.   CPP="${CC-cc} -E -traditional-cpp"
  578.   cat > conftest.$ac_ext <<EOF
  579. #line 580 "configure"
  580. #include "confdefs.h"
  581. #include <assert.h>
  582. Syntax Error
  583. EOF
  584. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  585. ac_err=`grep -v '^ *+' conftest.out`
  586. if test -z "$ac_err"; then
  587.   :
  588. else
  589.   echo "$ac_err" >&5
  590.   rm -rf conftest*
  591.   CPP=/lib/cpp
  592. fi
  593. rm -f conftest*
  594. fi
  595. rm -f conftest*
  596.   ac_cv_prog_CPP="$CPP"
  597. fi
  598. fi
  599. CPP="$ac_cv_prog_CPP"
  600. echo "$ac_t""$CPP" 1>&6
  601.  
  602. # Extract the first word of "ranlib", so it can be a program name with args.
  603. set dummy ranlib; ac_word=$2
  604. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  605. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  606.   echo $ac_n "(cached) $ac_c" 1>&6
  607. else
  608.   if test -n "$RANLIB"; then
  609.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  610. else
  611.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  612.   for ac_dir in $PATH; do
  613.     test -z "$ac_dir" && ac_dir=.
  614.     if test -f $ac_dir/$ac_word; then
  615.       ac_cv_prog_RANLIB="ranlib"
  616.       break
  617.     fi
  618.   done
  619.   IFS="$ac_save_ifs"
  620.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  621. fi
  622. fi
  623. RANLIB="$ac_cv_prog_RANLIB"
  624. if test -n "$RANLIB"; then
  625.   echo "$ac_t""$RANLIB" 1>&6
  626. else
  627.   echo "$ac_t""no" 1>&6
  628. fi
  629.  
  630. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  631. cat > conftest.$ac_ext <<EOF
  632. #line 633 "configure"
  633. #include "confdefs.h"
  634. #ifdef _AIX
  635.   yes
  636. #endif
  637.  
  638. EOF
  639. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  640.   egrep "yes" >/dev/null 2>&1; then
  641.   rm -rf conftest*
  642.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  643. #define _ALL_SOURCE 1
  644. EOF
  645.  
  646. else
  647.   rm -rf conftest*
  648.   echo "$ac_t""no" 1>&6
  649. fi
  650. rm -f conftest*
  651.  
  652.  
  653. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  654. if test -d /etc/conf/kconfig.d &&
  655.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  656. then
  657.   echo "$ac_t""yes" 1>&6
  658.   ISC=yes # If later tests want to check for ISC.
  659.   cat >> confdefs.h <<\EOF
  660. #define _POSIX_SOURCE 1
  661. EOF
  662.  
  663.   if test "$GCC" = yes; then
  664.     CC="$CC -posix"
  665.   else
  666.     CC="$CC -Xp"
  667.   fi
  668. else
  669.   echo "$ac_t""no" 1>&6
  670.   ISC=
  671. fi
  672.  
  673. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  674. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  675. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  676.   echo $ac_n "(cached) $ac_c" 1>&6
  677. else
  678.   cat > conftest.$ac_ext <<EOF
  679. #line 680 "configure"
  680. #include "confdefs.h"
  681. #include <minix/config.h>
  682. EOF
  683. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  684. ac_err=`grep -v '^ *+' conftest.out`
  685. if test -z "$ac_err"; then
  686.   rm -rf conftest*
  687.   eval "ac_cv_header_$ac_safe=yes"
  688. else
  689.   echo "$ac_err" >&5
  690.   rm -rf conftest*
  691.   eval "ac_cv_header_$ac_safe=no"
  692. fi
  693. rm -f conftest*
  694. fi
  695. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  696.   echo "$ac_t""yes" 1>&6
  697.   MINIX=yes
  698. else
  699.   echo "$ac_t""no" 1>&6
  700. MINIX=
  701. fi
  702.  
  703. if test "$MINIX" = yes; then
  704.   cat >> confdefs.h <<\EOF
  705. #define _POSIX_SOURCE 1
  706. EOF
  707.  
  708.   cat >> confdefs.h <<\EOF
  709. #define _POSIX_1_SOURCE 2
  710. EOF
  711.  
  712.   cat >> confdefs.h <<\EOF
  713. #define _MINIX 1
  714. EOF
  715.  
  716. fi
  717.  
  718. # If we cannot run a trivial program, we must be cross compiling.
  719. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  720. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  721.   echo $ac_n "(cached) $ac_c" 1>&6
  722. else
  723.   if test "$cross_compiling" = yes; then
  724.   ac_cv_c_cross=yes
  725. else
  726. cat > conftest.$ac_ext <<EOF
  727. #line 728 "configure"
  728. #include "confdefs.h"
  729. main(){return(0);}
  730. EOF
  731. eval $ac_link
  732. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  733.   ac_cv_c_cross=no
  734. else
  735.   ac_cv_c_cross=yes
  736. fi
  737. fi
  738. rm -fr conftest*
  739. fi
  740. cross_compiling=$ac_cv_c_cross
  741. echo "$ac_t""$ac_cv_c_cross" 1>&6
  742.  
  743. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  744. # for constant arguments.  Useless!
  745. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  746. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  747.   echo $ac_n "(cached) $ac_c" 1>&6
  748. else
  749.   cat > conftest.$ac_ext <<EOF
  750. #line 751 "configure"
  751. #include "confdefs.h"
  752. #include <alloca.h>
  753. int main() { return 0; }
  754. int t() {
  755. char *p = alloca(2 * sizeof(int));
  756. ; return 0; }
  757. EOF
  758. if eval $ac_link; then
  759.   rm -rf conftest*
  760.   ac_cv_header_alloca_h=yes
  761. else
  762.   rm -rf conftest*
  763.   ac_cv_header_alloca_h=no
  764. fi
  765. rm -f conftest*
  766.  
  767. fi
  768. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  769. if test $ac_cv_header_alloca_h = yes; then
  770.   cat >> confdefs.h <<\EOF
  771. #define HAVE_ALLOCA_H 1
  772. EOF
  773.  
  774. fi
  775.  
  776. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  777. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  778.   echo $ac_n "(cached) $ac_c" 1>&6
  779. else
  780.   cat > conftest.$ac_ext <<EOF
  781. #line 782 "configure"
  782. #include "confdefs.h"
  783.  
  784. #ifdef __GNUC__
  785. # define alloca __builtin_alloca
  786. #else
  787. # if HAVE_ALLOCA_H
  788. #  include <alloca.h>
  789. # else
  790. #  ifdef _AIX
  791.  #pragma alloca
  792. #  else
  793. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  794. char *alloca ();
  795. #   endif
  796. #  endif
  797. # endif
  798. #endif
  799.  
  800. int main() { return 0; }
  801. int t() {
  802. char *p = (char *) alloca(1);
  803. ; return 0; }
  804. EOF
  805. if eval $ac_link; then
  806.   rm -rf conftest*
  807.   ac_cv_func_alloca=yes
  808. else
  809.   rm -rf conftest*
  810.   ac_cv_func_alloca=no
  811. fi
  812. rm -f conftest*
  813.  
  814. fi
  815. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  816. if test $ac_cv_func_alloca = yes; then
  817.   cat >> confdefs.h <<\EOF
  818. #define HAVE_ALLOCA 1
  819. EOF
  820.  
  821. fi
  822.  
  823. if test $ac_cv_func_alloca = no; then
  824.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  825.   # that cause trouble.  Some versions do not even contain alloca or
  826.   # contain a buggy version.  If you still want to use their alloca,
  827.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  828.   ALLOCA=alloca.o
  829.   cat >> confdefs.h <<\EOF
  830. #define C_ALLOCA 1
  831. EOF
  832.  
  833.  
  834. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  835. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  836.   echo $ac_n "(cached) $ac_c" 1>&6
  837. else
  838.   cat > conftest.$ac_ext <<EOF
  839. #line 840 "configure"
  840. #include "confdefs.h"
  841. #if defined(CRAY) && ! defined(CRAY2)
  842. webecray
  843. #else
  844. wenotbecray
  845. #endif
  846.  
  847. EOF
  848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  849.   egrep "webecray" >/dev/null 2>&1; then
  850.   rm -rf conftest*
  851.   ac_cv_os_cray=yes
  852. else
  853.   rm -rf conftest*
  854.   ac_cv_os_cray=no
  855. fi
  856. rm -f conftest*
  857.  
  858. fi
  859. echo "$ac_t""$ac_cv_os_cray" 1>&6
  860. if test $ac_cv_os_cray = yes; then
  861. for ac_func in _getb67 GETB67 getb67; do
  862.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  863. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  864.   echo $ac_n "(cached) $ac_c" 1>&6
  865. else
  866.   cat > conftest.$ac_ext <<EOF
  867. #line 868 "configure"
  868. #include "confdefs.h"
  869. /* System header to define __stub macros and hopefully few prototypes,
  870.     which can conflict with char $ac_func(); below.  */
  871. #include <assert.h>
  872. /* Override any gcc2 internal prototype to avoid an error.  */
  873. char $ac_func(); 
  874.  
  875. int main() { return 0; }
  876. int t() {
  877.  
  878. /* The GNU C library defines this for functions which it implements
  879.     to always fail with ENOSYS.  Some functions are actually named
  880.     something starting with __ and the normal name is an alias.  */
  881. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  882. choke me
  883. #else
  884. $ac_func();
  885. #endif
  886.  
  887. ; return 0; }
  888. EOF
  889. if eval $ac_link; then
  890.   rm -rf conftest*
  891.   eval "ac_cv_func_$ac_func=yes"
  892. else
  893.   rm -rf conftest*
  894.   eval "ac_cv_func_$ac_func=no"
  895. fi
  896. rm -f conftest*
  897.  
  898. fi
  899. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  900.   echo "$ac_t""yes" 1>&6
  901.   cat >> confdefs.h <<EOF
  902. #define CRAY_STACKSEG_END $ac_func
  903. EOF
  904.  
  905.   break
  906. else
  907.   echo "$ac_t""no" 1>&6
  908. fi
  909.  
  910. done
  911. fi
  912.  
  913. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  914. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  915.   echo $ac_n "(cached) $ac_c" 1>&6
  916. else
  917.   if test "$cross_compiling" = yes; then
  918.   ac_cv_c_stack_direction=0
  919. else
  920. cat > conftest.$ac_ext <<EOF
  921. #line 922 "configure"
  922. #include "confdefs.h"
  923. find_stack_direction ()
  924. {
  925.   static char *addr = 0;
  926.   auto char dummy;
  927.   if (addr == 0)
  928.     {
  929.       addr = &dummy;
  930.       return find_stack_direction ();
  931.     }
  932.   else
  933.     return (&dummy > addr) ? 1 : -1;
  934. }
  935. main ()
  936. {
  937.   exit (find_stack_direction() < 0);
  938. }
  939. EOF
  940. eval $ac_link
  941. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  942.   ac_cv_c_stack_direction=1
  943. else
  944.   ac_cv_c_stack_direction=-1
  945. fi
  946. fi
  947. rm -fr conftest*
  948. fi
  949. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  950. cat >> confdefs.h <<EOF
  951. #define STACK_DIRECTION $ac_cv_c_stack_direction
  952. EOF
  953.  
  954. fi
  955.  
  956. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  957. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  958.   echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960.   cat > conftest.$ac_ext <<EOF
  961. #line 962 "configure"
  962. #include "confdefs.h"
  963. #include <sys/types.h>
  964. #include <sys/time.h>
  965. #include <time.h>
  966. int main() { return 0; }
  967. int t() {
  968. struct tm *tp;
  969. ; return 0; }
  970. EOF
  971. if eval $ac_compile; then
  972.   rm -rf conftest*
  973.   ac_cv_header_time=yes
  974. else
  975.   rm -rf conftest*
  976.   ac_cv_header_time=no
  977. fi
  978. rm -f conftest*
  979.  
  980. fi
  981. echo "$ac_t""$ac_cv_header_time" 1>&6
  982. if test $ac_cv_header_time = yes; then
  983.   cat >> confdefs.h <<\EOF
  984. #define TIME_WITH_SYS_TIME 1
  985. EOF
  986.  
  987. fi
  988.  
  989. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  990. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  991.   echo $ac_n "(cached) $ac_c" 1>&6
  992. else
  993.   cat > conftest.$ac_ext <<EOF
  994. #line 995 "configure"
  995. #include "confdefs.h"
  996. #include <sys/types.h>
  997. #include <signal.h>
  998. #ifdef signal
  999. #undef signal
  1000. #endif
  1001. #ifdef __cplusplus
  1002. extern "C"
  1003. #endif
  1004. void (*signal ()) ();
  1005. int main() { return 0; }
  1006. int t() {
  1007. int i;
  1008. ; return 0; }
  1009. EOF
  1010. if eval $ac_compile; then
  1011.   rm -rf conftest*
  1012.   ac_cv_type_signal=void
  1013. else
  1014.   rm -rf conftest*
  1015.   ac_cv_type_signal=int
  1016. fi
  1017. rm -f conftest*
  1018.  
  1019. fi
  1020. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1021. cat >> confdefs.h <<EOF
  1022. #define RETSIGTYPE $ac_cv_type_signal
  1023. EOF
  1024.  
  1025.  
  1026. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1027. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1028.   echo $ac_n "(cached) $ac_c" 1>&6
  1029. else
  1030.   cat > conftest.$ac_ext <<EOF
  1031. #line 1032 "configure"
  1032. #include "confdefs.h"
  1033.  
  1034. int main() { return 0; }
  1035. int t() {
  1036.  
  1037. /* Ultrix mips cc rejects this.  */
  1038. typedef int charset[2]; const charset x;
  1039. /* SunOS 4.1.1 cc rejects this.  */
  1040. char const *const *ccp;
  1041. char **p;
  1042. /* NEC SVR4.0.2 mips cc rejects this.  */
  1043. struct point {int x, y;};
  1044. static struct point const zero;
  1045. /* AIX XL C 1.02.0.0 rejects this.
  1046.    It does not let you subtract one const X* pointer from another in an arm
  1047.    of an if-expression whose if-part is not a constant expression */
  1048. const char *g = "string";
  1049. ccp = &g + (g ? g-g : 0);
  1050. /* HPUX 7.0 cc rejects these. */
  1051. ++ccp;
  1052. p = (char**) ccp;
  1053. ccp = (char const *const *) p;
  1054. { /* SCO 3.2v4 cc rejects this.  */
  1055.   char *t;
  1056.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1057.  
  1058.   *t++ = 0;
  1059. }
  1060. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1061.   int x[] = {25, 17};
  1062.   const int *foo = &x[0];
  1063.   ++foo;
  1064. }
  1065. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1066.   typedef const int *iptr;
  1067.   iptr p = 0;
  1068.   ++p;
  1069. }
  1070. { /* AIX XL C 1.02.0.0 rejects this saying
  1071.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1072.   struct s { int j; const int *ap[3]; };
  1073.   struct s *b; b->j = 5;
  1074. }
  1075. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1076.   const int foo = 10;
  1077. }
  1078.  
  1079. ; return 0; }
  1080. EOF
  1081. if eval $ac_compile; then
  1082.   rm -rf conftest*
  1083.   ac_cv_c_const=yes
  1084. else
  1085.   rm -rf conftest*
  1086.   ac_cv_c_const=no
  1087. fi
  1088. rm -f conftest*
  1089.  
  1090. fi
  1091. echo "$ac_t""$ac_cv_c_const" 1>&6
  1092. if test $ac_cv_c_const = no; then
  1093.   cat >> confdefs.h <<\EOF
  1094. #define const 
  1095. EOF
  1096.  
  1097. fi
  1098.  
  1099. if test "x$CC" != xcc; then
  1100.   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
  1101. else
  1102.   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
  1103. fi
  1104. set dummy $CC; ac_cc="`echo $2 | 
  1105.                sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
  1106. if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  1107.   echo $ac_n "(cached) $ac_c" 1>&6
  1108. else
  1109.   eval ac_cv_prog_cc_${ac_cc}_c_o=no
  1110. echo 'foo(){}' > conftest.c
  1111. # Make sure it works both with $CC and with simple cc.
  1112. # We do the test twice because some compilers refuse to overwrite an
  1113. # existing .o file with -o, though they will create one.
  1114. if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
  1115.   test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
  1116. then
  1117.   if test "x$CC" != xcc; then
  1118.     # Test first that cc exists at all.
  1119.     if cc -c conftest.c 1>&5 2>&5
  1120.     then
  1121.       if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
  1122.         test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
  1123.       then
  1124.         eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  1125.       fi
  1126.     fi
  1127.   fi
  1128. fi
  1129. rm -f conftest*
  1130.  
  1131. fi
  1132. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  1133.   echo "$ac_t""yes" 1>&6
  1134. else
  1135.   echo "$ac_t""no" 1>&6
  1136.   cat >> confdefs.h <<\EOF
  1137. #define NO_MINUS_C_MINUS_O 1
  1138. EOF
  1139.  
  1140. fi
  1141.  
  1142. # Extract the first word of "flex", so it can be a program name with args.
  1143. set dummy flex; ac_word=$2
  1144. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1145. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  1146.   echo $ac_n "(cached) $ac_c" 1>&6
  1147. else
  1148.   if test -n "$LEX"; then
  1149.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1150. else
  1151.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1152.   for ac_dir in $PATH; do
  1153.     test -z "$ac_dir" && ac_dir=.
  1154.     if test -f $ac_dir/$ac_word; then
  1155.       ac_cv_prog_LEX="flex"
  1156.       break
  1157.     fi
  1158.   done
  1159.   IFS="$ac_save_ifs"
  1160.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1161. fi
  1162. fi
  1163. LEX="$ac_cv_prog_LEX"
  1164. if test -n "$LEX"; then
  1165.   echo "$ac_t""$LEX" 1>&6
  1166. else
  1167.   echo "$ac_t""no" 1>&6
  1168. fi
  1169.  
  1170. if test -z "$LEXLIB"
  1171. then
  1172.   case "$LEX" in
  1173.   flex*) ac_lib=fl ;;
  1174.   *) ac_lib=l ;;
  1175.   esac
  1176.   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
  1177. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  1178.   echo $ac_n "(cached) $ac_c" 1>&6
  1179. else
  1180.   ac_save_LIBS="$LIBS"
  1181. LIBS="-l$ac_lib  $LIBS"
  1182. cat > conftest.$ac_ext <<EOF
  1183. #line 1184 "configure"
  1184. #include "confdefs.h"
  1185.  
  1186. int main() { return 0; }
  1187. int t() {
  1188. yywrap()
  1189. ; return 0; }
  1190. EOF
  1191. if eval $ac_link; then
  1192.   rm -rf conftest*
  1193.   eval "ac_cv_lib_$ac_lib=yes"
  1194. else
  1195.   rm -rf conftest*
  1196.   eval "ac_cv_lib_$ac_lib=no"
  1197. fi
  1198. rm -f conftest*
  1199. LIBS="$ac_save_LIBS"
  1200.  
  1201. fi
  1202. if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  1203.   echo "$ac_t""yes" 1>&6
  1204.   LEXLIB="-l$ac_lib"
  1205. else
  1206.   echo "$ac_t""no" 1>&6
  1207. fi
  1208.  
  1209. fi
  1210.  
  1211. for ac_prog in 'bison -y' byacc
  1212. do
  1213. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1214. set dummy $ac_prog; ac_word=$2
  1215. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1216. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1217.   echo $ac_n "(cached) $ac_c" 1>&6
  1218. else
  1219.   if test -n "$YACC"; then
  1220.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1221. else
  1222.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1223.   for ac_dir in $PATH; do
  1224.     test -z "$ac_dir" && ac_dir=.
  1225.     if test -f $ac_dir/$ac_word; then
  1226.       ac_cv_prog_YACC="$ac_prog"
  1227.       break
  1228.     fi
  1229.   done
  1230.   IFS="$ac_save_ifs"
  1231. fi
  1232. fi
  1233. YACC="$ac_cv_prog_YACC"
  1234. if test -n "$YACC"; then
  1235.   echo "$ac_t""$YACC" 1>&6
  1236. else
  1237.   echo "$ac_t""no" 1>&6
  1238. fi
  1239.  
  1240. test -n "$YACC" && break
  1241. done
  1242. test -n "$YACC" || YACC="yacc"
  1243.  
  1244. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1245. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1246.   echo $ac_n "(cached) $ac_c" 1>&6
  1247. else
  1248.   cat > conftest.$ac_ext <<EOF
  1249. #line 1250 "configure"
  1250. #include "confdefs.h"
  1251. #include <stdlib.h>
  1252. #include <stdarg.h>
  1253. #include <string.h>
  1254. #include <float.h>
  1255. EOF
  1256. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1257. ac_err=`grep -v '^ *+' conftest.out`
  1258. if test -z "$ac_err"; then
  1259.   rm -rf conftest*
  1260.   ac_cv_header_stdc=yes
  1261. else
  1262.   echo "$ac_err" >&5
  1263.   rm -rf conftest*
  1264.   ac_cv_header_stdc=no
  1265. fi
  1266. rm -f conftest*
  1267.  
  1268. if test $ac_cv_header_stdc = yes; then
  1269.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1270. cat > conftest.$ac_ext <<EOF
  1271. #line 1272 "configure"
  1272. #include "confdefs.h"
  1273. #include <string.h>
  1274. EOF
  1275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1276.   egrep "memchr" >/dev/null 2>&1; then
  1277.   :
  1278. else
  1279.   rm -rf conftest*
  1280.   ac_cv_header_stdc=no
  1281. fi
  1282. rm -f conftest*
  1283.  
  1284. fi
  1285.  
  1286. if test $ac_cv_header_stdc = yes; then
  1287.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1288. cat > conftest.$ac_ext <<EOF
  1289. #line 1290 "configure"
  1290. #include "confdefs.h"
  1291. #include <stdlib.h>
  1292. EOF
  1293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1294.   egrep "free" >/dev/null 2>&1; then
  1295.   :
  1296. else
  1297.   rm -rf conftest*
  1298.   ac_cv_header_stdc=no
  1299. fi
  1300. rm -f conftest*
  1301.  
  1302. fi
  1303.  
  1304. if test $ac_cv_header_stdc = yes; then
  1305.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1306. if test "$cross_compiling" = yes; then
  1307.   ac_cv_header_stdc=no
  1308. else
  1309. cat > conftest.$ac_ext <<EOF
  1310. #line 1311 "configure"
  1311. #include "confdefs.h"
  1312. #include <ctype.h>
  1313. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1314. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1315. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1316. int main () { int i; for (i = 0; i < 256; i++)
  1317. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1318. exit (0); }
  1319.  
  1320. EOF
  1321. eval $ac_link
  1322. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1323.   :
  1324. else
  1325.   ac_cv_header_stdc=no
  1326. fi
  1327. fi
  1328. rm -fr conftest*
  1329. fi
  1330. fi
  1331. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1332. if test $ac_cv_header_stdc = yes; then
  1333.   cat >> confdefs.h <<\EOF
  1334. #define STDC_HEADERS 1
  1335. EOF
  1336.  
  1337. fi
  1338.  
  1339. for ac_hdr in unistd.h string.h memory.h limits.h time.h sys/types.h sys/select.h sys/time.h sys/timeb.h sys/times.h
  1340. do
  1341. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1342. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1343. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1344.   echo $ac_n "(cached) $ac_c" 1>&6
  1345. else
  1346.   cat > conftest.$ac_ext <<EOF
  1347. #line 1348 "configure"
  1348. #include "confdefs.h"
  1349. #include <$ac_hdr>
  1350. EOF
  1351. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1352. ac_err=`grep -v '^ *+' conftest.out`
  1353. if test -z "$ac_err"; then
  1354.   rm -rf conftest*
  1355.   eval "ac_cv_header_$ac_safe=yes"
  1356. else
  1357.   echo "$ac_err" >&5
  1358.   rm -rf conftest*
  1359.   eval "ac_cv_header_$ac_safe=no"
  1360. fi
  1361. rm -f conftest*
  1362. fi
  1363. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1364.   echo "$ac_t""yes" 1>&6
  1365.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1366.   cat >> confdefs.h <<EOF
  1367. #define $ac_tr_hdr 1
  1368. EOF
  1369.  
  1370. else
  1371.   echo "$ac_t""no" 1>&6
  1372. fi
  1373. done
  1374.  
  1375.  
  1376. cat > conftest.$ac_ext <<EOF
  1377. #line 1378 "configure"
  1378. #include "confdefs.h"
  1379. #include <stdio.h>
  1380.  
  1381. int main() { return 0; }
  1382. int t() {
  1383. stdout->_file = 1
  1384. ; return 0; }
  1385. EOF
  1386. if eval $ac_compile; then
  1387.   rm -rf conftest*
  1388.   cat >> confdefs.h <<\EOF
  1389. #define FILE_FD_FIELD _file
  1390. EOF
  1391.  
  1392. else
  1393.   rm -rf conftest*
  1394.   cat > conftest.$ac_ext <<EOF
  1395. #line 1396 "configure"
  1396. #include "confdefs.h"
  1397. #include <stdio.h>
  1398.  
  1399. int main() { return 0; }
  1400. int t() {
  1401. stdout->_fileno
  1402. ; return 0; }
  1403. EOF
  1404. if eval $ac_compile; then
  1405.   rm -rf conftest*
  1406.   cat >> confdefs.h <<\EOF
  1407. #define FILE_FD_FIELD _fileno
  1408. EOF
  1409.  
  1410. fi
  1411. rm -f conftest*
  1412.  
  1413. fi
  1414. rm -f conftest*
  1415.  
  1416.  
  1417.  
  1418.  
  1419. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  1420. if eval "test \"`echo '$''{'ac_cv_lib_sun'+set}'`\" = set"; then
  1421.   echo $ac_n "(cached) $ac_c" 1>&6
  1422. else
  1423.   ac_save_LIBS="$LIBS"
  1424. LIBS="-lsun  $LIBS"
  1425. cat > conftest.$ac_ext <<EOF
  1426. #line 1427 "configure"
  1427. #include "confdefs.h"
  1428.  
  1429. int main() { return 0; }
  1430. int t() {
  1431. main()
  1432. ; return 0; }
  1433. EOF
  1434. if eval $ac_link; then
  1435.   rm -rf conftest*
  1436.   eval "ac_cv_lib_sun=yes"
  1437. else
  1438.   rm -rf conftest*
  1439.   eval "ac_cv_lib_sun=no"
  1440. fi
  1441. rm -f conftest*
  1442. LIBS="$ac_save_LIBS"
  1443.  
  1444. fi
  1445. if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  1446.   echo "$ac_t""yes" 1>&6
  1447.     ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
  1448.   cat >> confdefs.h <<EOF
  1449. #define $ac_tr_lib 1
  1450. EOF
  1451.  
  1452.   LIBS="-lsun $LIBS"
  1453.  
  1454. else
  1455.   echo "$ac_t""no" 1>&6
  1456. fi
  1457.  
  1458. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1459. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  1460.   echo $ac_n "(cached) $ac_c" 1>&6
  1461. else
  1462.   ac_save_LIBS="$LIBS"
  1463. LIBS="-lnsl  $LIBS"
  1464. cat > conftest.$ac_ext <<EOF
  1465. #line 1466 "configure"
  1466. #include "confdefs.h"
  1467.  
  1468. int main() { return 0; }
  1469. int t() {
  1470. gethostent()
  1471. ; return 0; }
  1472. EOF
  1473. if eval $ac_link; then
  1474.   rm -rf conftest*
  1475.   eval "ac_cv_lib_nsl=yes"
  1476. else
  1477.   rm -rf conftest*
  1478.   eval "ac_cv_lib_nsl=no"
  1479. fi
  1480. rm -f conftest*
  1481. LIBS="$ac_save_LIBS"
  1482.  
  1483. fi
  1484. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  1485.   echo "$ac_t""yes" 1>&6
  1486.     ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'`
  1487.   cat >> confdefs.h <<EOF
  1488. #define $ac_tr_lib 1
  1489. EOF
  1490.  
  1491.   LIBS="-lnsl $LIBS"
  1492.  
  1493. else
  1494.   echo "$ac_t""no" 1>&6
  1495. fi
  1496.  
  1497. echo $ac_n "checking for -lucb""... $ac_c" 1>&6
  1498. if eval "test \"`echo '$''{'ac_cv_lib_ucb'+set}'`\" = set"; then
  1499.   echo $ac_n "(cached) $ac_c" 1>&6
  1500. else
  1501.   ac_save_LIBS="$LIBS"
  1502. LIBS="-lucb  $LIBS"
  1503. cat > conftest.$ac_ext <<EOF
  1504. #line 1505 "configure"
  1505. #include "confdefs.h"
  1506.  
  1507. int main() { return 0; }
  1508. int t() {
  1509. bzero()
  1510. ; return 0; }
  1511. EOF
  1512. if eval $ac_link; then
  1513.   rm -rf conftest*
  1514.   eval "ac_cv_lib_ucb=yes"
  1515. else
  1516.   rm -rf conftest*
  1517.   eval "ac_cv_lib_ucb=no"
  1518. fi
  1519. rm -f conftest*
  1520. LIBS="$ac_save_LIBS"
  1521.  
  1522. fi
  1523. if eval "test \"`echo '$ac_cv_lib_'ucb`\" = yes"; then
  1524.   echo "$ac_t""yes" 1>&6
  1525.     ac_tr_lib=HAVE_LIB`echo ucb | tr '[a-z]' '[A-Z]'`
  1526.   cat >> confdefs.h <<EOF
  1527. #define $ac_tr_lib 1
  1528. EOF
  1529.  
  1530.   LIBS="-lucb $LIBS"
  1531.  
  1532. else
  1533.   echo "$ac_t""no" 1>&6
  1534. fi
  1535.  
  1536. echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1537. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  1538.   echo $ac_n "(cached) $ac_c" 1>&6
  1539. else
  1540.   ac_save_LIBS="$LIBS"
  1541. LIBS="-lsocket  $LIBS"
  1542. cat > conftest.$ac_ext <<EOF
  1543. #line 1544 "configure"
  1544. #include "confdefs.h"
  1545.  
  1546. int main() { return 0; }
  1547. int t() {
  1548. socket()
  1549. ; return 0; }
  1550. EOF
  1551. if eval $ac_link; then
  1552.   rm -rf conftest*
  1553.   eval "ac_cv_lib_socket=yes"
  1554. else
  1555.   rm -rf conftest*
  1556.   eval "ac_cv_lib_socket=no"
  1557. fi
  1558. rm -f conftest*
  1559. LIBS="$ac_save_LIBS"
  1560.  
  1561. fi
  1562. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  1563.   echo "$ac_t""yes" 1>&6
  1564.     ac_tr_lib=HAVE_LIB`echo socket | tr '[a-z]' '[A-Z]'`
  1565.   cat >> confdefs.h <<EOF
  1566. #define $ac_tr_lib 1
  1567. EOF
  1568.  
  1569.   LIBS="-lsocket $LIBS"
  1570.  
  1571. else
  1572.   echo "$ac_t""no" 1>&6
  1573. fi
  1574.  
  1575. echo $ac_n "checking for -lbsd""... $ac_c" 1>&6
  1576. if eval "test \"`echo '$''{'ac_cv_lib_bsd'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   ac_save_LIBS="$LIBS"
  1580. LIBS="-lbsd  $LIBS"
  1581. cat > conftest.$ac_ext <<EOF
  1582. #line 1583 "configure"
  1583. #include "confdefs.h"
  1584.  
  1585. int main() { return 0; }
  1586. int t() {
  1587. bzero()
  1588. ; return 0; }
  1589. EOF
  1590. if eval $ac_link; then
  1591.   rm -rf conftest*
  1592.   eval "ac_cv_lib_bsd=yes"
  1593. else
  1594.   rm -rf conftest*
  1595.   eval "ac_cv_lib_bsd=no"
  1596. fi
  1597. rm -f conftest*
  1598. LIBS="$ac_save_LIBS"
  1599.  
  1600. fi
  1601. if eval "test \"`echo '$ac_cv_lib_'bsd`\" = yes"; then
  1602.   echo "$ac_t""yes" 1>&6
  1603.     ac_tr_lib=HAVE_LIB`echo bsd | tr '[a-z]' '[A-Z]'`
  1604.   cat >> confdefs.h <<EOF
  1605. #define $ac_tr_lib 1
  1606. EOF
  1607.  
  1608.   LIBS="-lbsd $LIBS"
  1609.  
  1610. else
  1611.   echo "$ac_t""no" 1>&6
  1612. fi
  1613.  
  1614.     
  1615.  
  1616.  
  1617. for ac_func in ftime times gethostent
  1618. do
  1619. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1620. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1621.   echo $ac_n "(cached) $ac_c" 1>&6
  1622. else
  1623.   cat > conftest.$ac_ext <<EOF
  1624. #line 1625 "configure"
  1625. #include "confdefs.h"
  1626. /* System header to define __stub macros and hopefully few prototypes,
  1627.     which can conflict with char $ac_func(); below.  */
  1628. #include <assert.h>
  1629. /* Override any gcc2 internal prototype to avoid an error.  */
  1630. char $ac_func(); 
  1631.  
  1632. int main() { return 0; }
  1633. int t() {
  1634.  
  1635. /* The GNU C library defines this for functions which it implements
  1636.     to always fail with ENOSYS.  Some functions are actually named
  1637.     something starting with __ and the normal name is an alias.  */
  1638. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1639. choke me
  1640. #else
  1641. $ac_func();
  1642. #endif
  1643.  
  1644. ; return 0; }
  1645. EOF
  1646. if eval $ac_link; then
  1647.   rm -rf conftest*
  1648.   eval "ac_cv_func_$ac_func=yes"
  1649. else
  1650.   rm -rf conftest*
  1651.   eval "ac_cv_func_$ac_func=no"
  1652. fi
  1653. rm -f conftest*
  1654.  
  1655. fi
  1656. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1657.   echo "$ac_t""yes" 1>&6
  1658.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1659.   cat >> confdefs.h <<EOF
  1660. #define $ac_tr_func 1
  1661. EOF
  1662.  
  1663. else
  1664.   echo "$ac_t""no" 1>&6
  1665. fi
  1666. done
  1667.  
  1668. trap '' 1 2 15
  1669. cat > confcache <<\EOF
  1670. # This file is a shell script that caches the results of configure
  1671. # tests run on this system so they can be shared between configure
  1672. # scripts and configure runs.  It is not useful on other systems.
  1673. # If it contains results you don't want to keep, you may remove or edit it.
  1674. #
  1675. # By default, configure uses ./config.cache as the cache file,
  1676. # creating it if it does not exist already.  You can give configure
  1677. # the --cache-file=FILE option to use a different cache file; that is
  1678. # what configure does when it calls configure scripts in
  1679. # subdirectories, so they share the cache.
  1680. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1681. # config.status only pays attention to the cache file if you give it the
  1682. # --recheck option to rerun configure.
  1683. #
  1684. EOF
  1685. # Ultrix sh set writes to stderr and can't be redirected directly,
  1686. # and sets the high bit in the cache file unless we assign to the vars.
  1687. (set) 2>&1 |
  1688.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1689.   >> confcache
  1690. if cmp -s $cache_file confcache; then
  1691.   :
  1692. else
  1693.   if test -w $cache_file; then
  1694.     echo "updating cache $cache_file"
  1695.     cat confcache > $cache_file
  1696.   else
  1697.     echo "not updating unwritable cache $cache_file"
  1698.   fi
  1699. fi
  1700. rm -f confcache
  1701.  
  1702. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1703.  
  1704. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1705. # Let make expand exec_prefix.
  1706. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1707.  
  1708. # Any assignment to VPATH causes Sun make to only execute
  1709. # the first set of double-colon rules, so remove it if not needed.
  1710. # If there is a colon in the path, we need to keep it.
  1711. if test "x$srcdir" = x.; then
  1712.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1713. fi
  1714.  
  1715. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1716.  
  1717. DEFS=-DHAVE_CONFIG_H
  1718.  
  1719. # Without the "./", some shells look in PATH for config.status.
  1720. : ${CONFIG_STATUS=./config.status}
  1721.  
  1722. echo creating $CONFIG_STATUS
  1723. rm -f $CONFIG_STATUS
  1724. cat > $CONFIG_STATUS <<EOF
  1725. #! /bin/sh
  1726. # Generated automatically by configure.
  1727. # Run this file to recreate the current configuration.
  1728. # This directory was configured as follows,
  1729. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1730. #
  1731. # $0 $ac_configure_args
  1732. #
  1733. # Compiler output produced by configure, useful for debugging
  1734. # configure, is in ./config.log if it exists.
  1735.  
  1736. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1737. for ac_option
  1738. do
  1739.   case "\$ac_option" in
  1740.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1741.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1742.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1743.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1744.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  1745.     exit 0 ;;
  1746.   -help | --help | --hel | --he | --h)
  1747.     echo "\$ac_cs_usage"; exit 0 ;;
  1748.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1749.   esac
  1750. done
  1751.  
  1752. ac_given_srcdir=$srcdir
  1753. ac_given_INSTALL="$INSTALL"
  1754.  
  1755. trap 'rm -fr `echo "Makefile scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1756.  
  1757. # Protect against being on the right side of a sed subst in config.status. 
  1758. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1759.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1760. $ac_vpsub
  1761. $extrasub
  1762. s%@CFLAGS@%$CFLAGS%g
  1763. s%@CPPFLAGS@%$CPPFLAGS%g
  1764. s%@CXXFLAGS@%$CXXFLAGS%g
  1765. s%@DEFS@%$DEFS%g
  1766. s%@LDFLAGS@%$LDFLAGS%g
  1767. s%@LIBS@%$LIBS%g
  1768. s%@exec_prefix@%$exec_prefix%g
  1769. s%@prefix@%$prefix%g
  1770. s%@program_transform_name@%$program_transform_name%g
  1771. s%@CC@%$CC%g
  1772. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1773. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1774. s%@CPP@%$CPP%g
  1775. s%@RANLIB@%$RANLIB%g
  1776. s%@ALLOCA@%$ALLOCA%g
  1777. s%@LEX@%$LEX%g
  1778. s%@LEXLIB@%$LEXLIB%g
  1779. s%@YACC@%$YACC%g
  1780. s%@LIBOBJS@%$LIBOBJS%g
  1781.  
  1782. CEOF
  1783. EOF
  1784. cat >> $CONFIG_STATUS <<EOF
  1785.  
  1786. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1787. EOF
  1788. cat >> $CONFIG_STATUS <<\EOF
  1789. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1790.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1791.   case "$ac_file" in
  1792.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1793.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1794.   *) ac_file_in="${ac_file}.in" ;;
  1795.   esac
  1796.  
  1797.   # Adjust relative srcdir, etc. for subdirectories.
  1798.  
  1799.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1800.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1801.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1802.     # The file is in a subdirectory.
  1803.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1804.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1805.     # A "../" for each directory in $ac_dir_suffix.
  1806.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1807.   else
  1808.     ac_dir_suffix= ac_dots=
  1809.   fi
  1810.  
  1811.   case "$ac_given_srcdir" in
  1812.   .)  srcdir=.
  1813.       if test -z "$ac_dots"; then top_srcdir=.
  1814.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1815.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1816.   *) # Relative path.
  1817.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1818.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1819.   esac
  1820.  
  1821.   case "$ac_given_INSTALL" in
  1822.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1823.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1824.   esac
  1825.   echo creating "$ac_file"
  1826.   rm -f "$ac_file"
  1827.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1828.   case "$ac_file" in
  1829.   *Makefile*) ac_comsub="1i\\
  1830. # $configure_input" ;;
  1831.   *) ac_comsub= ;;
  1832.   esac
  1833.   sed -e "$ac_comsub
  1834. s%@configure_input@%$configure_input%g
  1835. s%@srcdir@%$srcdir%g
  1836. s%@top_srcdir@%$top_srcdir%g
  1837. s%@INSTALL@%$INSTALL%g
  1838. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1839. fi; done
  1840. rm -f conftest.subs
  1841.  
  1842. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1843. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1844. #
  1845. # ac_d sets the value in "#define NAME VALUE" lines.
  1846. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1847. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1848. ac_dC='\3'
  1849. ac_dD='%g'
  1850. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1851. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1852. ac_uB='\([     ]\)%\1#\2define\3'
  1853. ac_uC=' '
  1854. ac_uD='\4%g'
  1855. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1856. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1857. ac_eB='$%\1#\2define\3'
  1858. ac_eC=' '
  1859. ac_eD='%g'
  1860.  
  1861. CONFIG_HEADERS=${CONFIG_HEADERS-"scmconfig.h"}
  1862. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1863.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1864.   case "$ac_file" in
  1865.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1866.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1867.   *) ac_file_in="${ac_file}.in" ;;
  1868.   esac
  1869.  
  1870.   echo creating $ac_file
  1871.  
  1872.   rm -f conftest.frag conftest.in conftest.out
  1873.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1874.  
  1875. EOF
  1876.  
  1877. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1878. # the proper values into config.h.in to produce config.h.  And first:
  1879. # Protect against being on the right side of a sed subst in config.status. 
  1880. # Protect against being in an unquoted here document in config.status.
  1881. rm -f conftest.vals
  1882. cat > conftest.hdr <<\EOF
  1883. s/[\\&%]/\\&/g
  1884. s%[\\$`]%\\&%g
  1885. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1886. s%ac_d%ac_u%gp
  1887. s%ac_u%ac_e%gp
  1888. EOF
  1889. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1890. rm -f conftest.hdr
  1891.  
  1892. # This sed command replaces #undef with comments.  This is necessary, for
  1893. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1894. # on some systems where configure will not decide to define it.
  1895. cat >> conftest.vals <<\EOF
  1896. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1897. EOF
  1898.  
  1899. # Break up conftest.vals because some shells have a limit on
  1900. # the size of here documents, and old seds have small limits too.
  1901. # Maximum number of lines to put in a single here document.
  1902. ac_max_here_lines=12
  1903.  
  1904. rm -f conftest.tail
  1905. while :
  1906. do
  1907.   ac_lines=`grep -c . conftest.vals`
  1908.   # grep -c gives empty output for an empty file on some AIX systems.
  1909.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1910.   # Write a limited-size here document to conftest.frag.
  1911.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1912.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1913.   echo 'CEOF
  1914.   sed -f conftest.frag conftest.in > conftest.out
  1915.   rm -f conftest.in
  1916.   mv conftest.out conftest.in
  1917. ' >> $CONFIG_STATUS
  1918.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1919.   rm -f conftest.vals
  1920.   mv conftest.tail conftest.vals
  1921. done
  1922. rm -f conftest.vals
  1923.  
  1924. cat >> $CONFIG_STATUS <<\EOF
  1925.   rm -f conftest.frag conftest.h
  1926.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1927.   cat conftest.in >> conftest.h
  1928.   rm -f conftest.in
  1929.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1930.     echo "$ac_file is unchanged"
  1931.     rm -f conftest.h
  1932.   else
  1933.     rm -f $ac_file
  1934.     mv conftest.h $ac_file
  1935.   fi
  1936. fi; done
  1937.  
  1938.  
  1939.  
  1940. exit 0
  1941. EOF
  1942. chmod +x $CONFIG_STATUS
  1943. rm -fr confdefs* $ac_clean_files
  1944. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1945.  
  1946.  
  1947.